package MyServlet;

import com.example.mybrowser.Pack.PackageEntry;

public class ModifyResponseHeader {
	public static void exactTransEncode(PackageEntry entry)
	{
		if (entry.Response == null)
			return;
		entry.Response = entry.Response.replace("Transfer-Encoding: chunked", "Content-Length: "+entry.Content.length);
		entry.Response = entry.Response.replace("Transfer-Encoding : chunked", "Content-Length : "+entry.Content.length);
	}
}
